<div class="modal-header" modal-draggable>
  <h3 class="modal-title" translate>Clean Node</h3>
</div>
<div class="modal-body clearfix">
  <div class="content">
    <div translate class="subtitle">Provide a list of cleaning steps in JSON format</div>
    <div class="form-group"
         ng-init="cleanSteps=''">
      <div class="form-field">
        <textarea type="text"
                  class="form-control input-sm"
                  ng-model="cleanSteps"
                  ng-change="ctrl.errMsg=''"
                  auto-focus
                  rows="8"
                  required
                  placeholder=""/>
      </div>
    </div>
    <div uib-alert
         ng-hide="ctrl.errMsg === ''"
         ng-class="'alert-danger'">
      {$ ctrl.errMsg $}
    </div>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-default secondary"
          type="button"
          ng-click="ctrl.cancel()"
          translate>
    Cancel
  </button>
  <button class="btn btn-primary"
          type="button"
          ng-disabled="cleanSteps === '' || ctrl.errMsg !== ''"
          ng-click="ctrl.clean(cleanSteps)"
          translate>
    Clean node
  </button>
</div>
